using System;
using UnityEngine;

[Serializable]
public class ShaderChange : MonoBehaviour
{
	[NonSerialized]
	public static Shader glossy;

	[NonSerialized]
	public static Shader vert;

	public void Start()
	{
		if (!glossy)
		{
			glossy = (Shader)Resources.Load("Reflect-Glossy", typeof(Shader));
			vert = Shader.Find("Legacy Shaders/Reflective/VertexLit");
		}
		if (PlayerPrefs.GetInt("HQGraphics") == 1)
		{
			GetComponent<Renderer>().sharedMaterial.shader = glossy;
		}
		else
		{
			GetComponent<Renderer>().sharedMaterial.shader = vert;
		}
	}

	public void Main()
	{
	}
}
